for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
window.cancelAnimationFrame = window.cancelAnimationFrame || function(){}
window.requestAnimationFrame = window.requestAnimationFrame || function(){}
class LocalStorageMock {
constructor() {
this.store = {};
}
clear() {
getItem(key) {
return this.store[key];
setItem(key, value) {
this.store[key] = value.toString();
};
global.localStorage = new LocalStorageMock;